function show(msg, type) {
	let images = {
		'fail': '/static/tip/error.png',
		'warn': '/static/tip/warn.png',
		'succ': '/static/tip/success.png',
		'info': '/static/tip/info.png',
		'none': ''
	};
	
	uni.showToast({
		title: msg,
		image: images[type],
	});

	return;
}

function alert(msg){
	uni.showModal({
		showCancel:false,
		content:msg,
		//confirmText:'确定',
	}) ;
}


module.exports = {
	show,
	alert,
}
